Search results
1000+ packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
Check if argv has a specific flag
Process execution for humans
Human-friendly process signals
- signal
- signals
- handlers
- error-handling
- interrupts
- sigterm
- sigint
- irq
- process
- exit
- exit-code
- status
- operating-system
- es6
- View more
Check if the process is running inside a Docker container
Open stuff like URLs, files, executables. Cross-platform.
Gracefully restore the CLI cursor on exit
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
A replacement for process.exit that ensures stdio are fully drained before exiting.
process information for node.js and browsers
Returns true if the platform is windows. UMD module, works with node.js, commonjs, browser, AMD, electron, etc.
kill trees of processes
Get stdin as a string or buffer
Cross platform children list of a PID
small commonmark compliant markdown parser with positional info and concrete tokens
parse, inspect, transform, and serialize content through syntax trees
Some useful utilities I often need
Check if the process is running inside a container (Docker/Podman)
Serialize/deserialize an error into a plain object
Execute a function on exit without leaking memory, allowing all objects to be garbage collected
Check if the process is running as root user, for example, one started with `sudo`